import 'package:xin_he/generated/json/base/json_convert_content.dart';
import 'package:xin_he/page/goods/xin_he_good_detail/xin_he_goods_specification_model_entity.dart';

XinHeGoodsSpecificationModelEntity $XinHeGoodsSpecificationModelEntityFromJson(Map<String, dynamic> json) {
	final XinHeGoodsSpecificationModelEntity xinHeGoodsSpecificationModelEntity = XinHeGoodsSpecificationModelEntity();
	final String? id = jsonConvert.convert<String>(json['id']);
	if (id != null) {
		xinHeGoodsSpecificationModelEntity.id = id;
	}
	final String? fGoodsId = jsonConvert.convert<String>(json['fGoodsId']);
	if (fGoodsId != null) {
		xinHeGoodsSpecificationModelEntity.fGoodsId = fGoodsId;
	}
	final String? name = jsonConvert.convert<String>(json['name']);
	if (name != null) {
		xinHeGoodsSpecificationModelEntity.name = name;
	}
	final double? price = jsonConvert.convert<double>(json['price']);
	if (price != null) {
		xinHeGoodsSpecificationModelEntity.price = price;
	}
	final double? originalPrice = jsonConvert.convert<double>(json['originalPrice']);
	if (originalPrice != null) {
		xinHeGoodsSpecificationModelEntity.originalPrice = originalPrice;
	}
	final double? seckillPrice = jsonConvert.convert<double>(json['seckillPrice']);
	if (seckillPrice != null) {
		xinHeGoodsSpecificationModelEntity.seckillPrice = seckillPrice;
	}
	final double? groupPurchasePrice = jsonConvert.convert<double>(json['groupPurchasePrice']);
	if (groupPurchasePrice != null) {
		xinHeGoodsSpecificationModelEntity.groupPurchasePrice = groupPurchasePrice;
	}
	final dynamic unit = jsonConvert.convert<dynamic>(json['unit']);
	if (unit != null) {
		xinHeGoodsSpecificationModelEntity.unit = unit;
	}
	final dynamic remark = jsonConvert.convert<dynamic>(json['remark']);
	if (remark != null) {
		xinHeGoodsSpecificationModelEntity.remark = remark;
	}
	final dynamic versionNum = jsonConvert.convert<dynamic>(json['version_num']);
	if (versionNum != null) {
		xinHeGoodsSpecificationModelEntity.versionNum = versionNum;
	}
	final dynamic removed = jsonConvert.convert<dynamic>(json['removed']);
	if (removed != null) {
		xinHeGoodsSpecificationModelEntity.removed = removed;
	}
	final dynamic createTime = jsonConvert.convert<dynamic>(json['createTime']);
	if (createTime != null) {
		xinHeGoodsSpecificationModelEntity.createTime = createTime;
	}
	final dynamic updateTime = jsonConvert.convert<dynamic>(json['updateTime']);
	if (updateTime != null) {
		xinHeGoodsSpecificationModelEntity.updateTime = updateTime;
	}
	final dynamic fCreateUserId = jsonConvert.convert<dynamic>(json['fCreateUserId']);
	if (fCreateUserId != null) {
		xinHeGoodsSpecificationModelEntity.fCreateUserId = fCreateUserId;
	}
	final dynamic fUpdateUserId = jsonConvert.convert<dynamic>(json['fUpdateUserId']);
	if (fUpdateUserId != null) {
		xinHeGoodsSpecificationModelEntity.fUpdateUserId = fUpdateUserId;
	}
	final bool? isSelected = jsonConvert.convert<bool>(json['isSelected']);
	if (isSelected != null) {
		xinHeGoodsSpecificationModelEntity.isSelected = isSelected;
	}
	return xinHeGoodsSpecificationModelEntity;
}

Map<String, dynamic> $XinHeGoodsSpecificationModelEntityToJson(XinHeGoodsSpecificationModelEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['id'] = entity.id;
	data['fGoodsId'] = entity.fGoodsId;
	data['name'] = entity.name;
	data['price'] = entity.price;
	data['originalPrice'] = entity.originalPrice;
	data['seckillPrice'] = entity.seckillPrice;
	data['groupPurchasePrice'] = entity.groupPurchasePrice;
	data['unit'] = entity.unit;
	data['remark'] = entity.remark;
	data['version_num'] = entity.versionNum;
	data['removed'] = entity.removed;
	data['createTime'] = entity.createTime;
	data['updateTime'] = entity.updateTime;
	data['fCreateUserId'] = entity.fCreateUserId;
	data['fUpdateUserId'] = entity.fUpdateUserId;
	data['isSelected'] = entity.isSelected;
	return data;
}